define([ 'order!jquery-validation/jquery.validate', 'order!jquery-validation/messages_cn' ], function () {

    if (typeof formSubmit !== 'function') {
        formSubmit = function (data, obj) {
            console.log('来自全局的 formSubmit()\n' + data);
        }
    }

    $.validator.setDefaults({
        submitHandler:function (obj) {
            //console.log("FORM completed inspection. The next fns is \"formSubmitGlobal()\".");
            var data = $(obj).serialize();
            formSubmit(data, obj);
        }
    });

    return function () {
        $('.' + INIT.validateFormClass).validate();
    }
});

